<?php

namespace App\Models;

use App\Models\Traits\BaseModels;
use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\SettingSource
 *
 * @property int $id
 * @property int $source_id 渠道ID
 * @property int $type 分类
 * @property string $source_name 渠道名称
 * @property string $ios_path ios路径
 * @property string $android_path android路径
 * @property string $web_path H5路径
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SettingSource newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SettingSource newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SettingSource query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SettingSource whereAndroidPath($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SettingSource whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SettingSource whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SettingSource whereIosPath($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SettingSource whereSourceId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SettingSource whereSourceName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SettingSource whereType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SettingSource whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\SettingSource whereWebPath($value)
 * @mixin \Eloquent
 */
class SettingSource extends Model
{
    use BaseModels;
    protected $fillable = [
        'source_id',
        'source_name',
        'ios_path',
        'android_path',
        'web_path',
        'type',
        'old'
    ];

    const H5_TYPE_CHANNEL_OLD = 1; //渠道 旧
    const H5_TYPE_CHANNEL_NEW = 0; //渠道 新
    const H5_TYPE_LLOGIN = 2; //联登h5
}
